import request from '@/utils/request'

// 查询家长圈举报信息管理列表
export function listCompassDiaryReport(query) {
    return request({
        url: '/system/DiaryReport/list',
        method: 'get',
        params: query
    })
}

// 查询家长圈举报信息管理详细
export function getCompassDiaryReport(id) {
    return request({
        url: '/system/CompassDiaryReport/' + id,
        method: 'get'
    })
}

// 新增家长圈举报信息管理
export function addCompassDiaryReport(data) {
    return request({
        url: '/system/CompassDiaryReport',
        method: 'post',
        data: data
    })
}

// 修改家长圈举报信息管理
export function updateCompassDiaryReport(data) {
    return request({
        url: '/system/CompassDiaryReport',
        method: 'put',
        data: data
    })
}

// 删除家长圈举报信息管理
export function delCompassDiaryReport(id) {
    return request({
        url: '/system/CompassDiaryReport/' + id,
        method: 'delete'
    })
}

// 导出家长圈举报信息管理
export function exportCompassDiaryReport(query) {
    return request({
        url: '/system/CompassDiaryReport/export',
        method: 'get',
        params: query
    })
}
//删除举报信息
export function deleteReport(id) {
  return request({
    url: '/system/DiaryReport/' +id,
    method: 'delete',
  })
}
//获取家长圈举报详细信息
export function getReportDetail(id) {
  return request({
    url: '/system/DiaryReport/' +id,
    method: 'get',
  })
}
//驳回接口
export function checkReport(id,type) {
  return request({
    url: '/system/DiaryReport/check/' +id +'/' +type,
    method: 'get',
  })
}
